package swingxrcp.framework.model.environment;

import java.util.Locale;
import java.util.TimeZone;

import swingxrcp.framework.model.domain.Config;

/**
 * 客户端信息
 *
 * @author liangfei
 *
 */
public class ClientSource {

	public ClientSource(Config config, Locale locale, TimeZone timeZone, String ip) {
		super();
		this.config = config;
		this.locale = locale;
		this.timeZone = timeZone;
		this.ip = ip;
	}

	private Config config;

	/**
	 * SwingX框架启动属性配置
	 *
	 * @return config
	 */
	public Config getConfig() {
		return config;
	}

	private Locale locale;

	/**
	 * 获取客户端国际化区域
	 *
	 * @return 客户端国际化区域
	 */
	public Locale getLocale() {
		return locale;
	}

	private TimeZone timeZone;

	/**
	 * 获取客户端时区
	 *
	 * @return 客户端时区
	 */
	public TimeZone getTimeZone() {
		return timeZone;
	}

	private String ip;

	/**
	 * 获取客户端IP
	 *
	 * @return 客户端IP
	 */
	public String getIP() {
		return ip;
	}

}
